import 'package:app_base_page/app_base_page.dart';

/**
 *
 * @ProjectName:    manager_page
 * @ClassName:      page_body
 * @Description:    dart类作用描述
 * @Author:         孙浩
 * @QQ:             243280864
 * @CreateDate:     2020/11/24 1:03 AM
 */
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:manager_page/info_data.dart';

import 'base_adapter.dart';
import 'base_page.dart';

class ManagementPage extends StatefulWidget {
  String imgPath;

  ManagementPage(this.imgPath);

  @override
  _State createState() => _State();
}

class _State extends BasePage<ManagementPage> {
  @override
  pageV()=>false;
  List<InfoData> dataList = [
    InfoData("进步心", "一个人，能否进步取决于是否想要进步"),
    InfoData("历史", "1.互动的历史\n被动获取→主动获取→互动\n2.连接的历史\n有线互联→无线互联→未来网器(物联网)"),
    InfoData("思维改变", "能力循环(接受任务→学习本领→能力提升→身价提升)"),
    InfoData("资源整合", "(上级/跨部门)"),
    InfoData("敢于担当", ""),
    InfoData("定位", "干什么的→不同之处→解决痛点"),
    InfoData("管理意识增强", "有行有果有预防"),
    InfoData("立即行动", "串联整个管理课程二期，学以致用，学以适用，学以利用"),
  ];

  @override
  Widget initPageBody(BuildContext c) => BaseMPage(
      widget.imgPath, (ctx, index) => buildItem(index), dataList.length,"新任经理角色认知");

  buildItem(int index) => BaseAdapter(index, dataList[index]);
}
